package com.zretc.dao;

import com.zretc.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 周文涛
 * 2020年8月24日20:14:14
 * 公告持久层
 */
@Mapper
@Repository
public interface NoticeMapper {

    List<Notice> getAll(Map<String,String> condition);

    Notice getOne(Integer noticeId);

    int insert(Notice notice);

    int update(Notice notice);

    int delete(Integer noticeId);

    Notice getNew();
}
